<h1>Listing item_attribute_sets</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Required</th>
    <th>Mutually exclusive</th>
	<th>Inherits from container</th>
    <th>Hidden</th>	  
  </tr>
  <% @item_attribute_sets.each do |item_attribute_set| %>
	<tr>
      <td><%=h item_attribute_set.name %></td>
      <td><%=h item_attribute_set.required %></td>
      <td><%=h item_attribute_set.mutually_exclusive %></td>
	  <td><%=h item_attribute_set.inherits_from_container %></td>
      <td><%=h item_attribute_set.hidden %></td>
	</tr>
  <% end %>
</table>

<br />

<table>
  <% @item_attribute_sets.each do |item_attribute_set| %>
    <tr>
      <th>Name</th>
      <th>Required</th>
      <th>Mutually exclusive</th>
      <th>Hidden</th>	  
    </tr>
    <tr>
      <td><%=h item_attribute_set.name %></td>
      <td><%=h item_attribute_set.required %></td>
      <td><%=h item_attribute_set.mutually_exclusive %></td>
      <td><%=h item_attribute_set.hidden %></td>
    </tr>
    <% if item_attribute_set.item_attributes %>
	  <th></th>
      <th>Display text</th>
      <th>Hidden</th>
      <th>Verify on scan</th>
      <% item_attribute_set.item_attributes.each do |item_attribute| %>
        <%= render :partial => "item_attributes/item_attribute_row", :locals => {:item_attribute => item_attribute} %>
      <% end %>
    <% end %>
	<tr><td>&nbsp;</td></tr>
  <% end %>
</table>

<br />

<%= link_to 'New item_attribute_set', new_item_attribute_set_path %>